-- GENERATED SPELL FOR [Drakkari Elemental] --


function spell0_29573(pUnit, Event) --@Merge,n/a--
pUnit:FullCastSpellOnTarget(54878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29573', 2000, 1)
end

function spell1_29573(pUnit, Event) --@Surge,n/a--
pUnit:FullCastSpellOnTarget(54801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29573', 2000, 1)
end

function Sorts_29573(pUnit, Event)
local choix_sorts_29573 = math.random(0, 1)
if choix_sorts_29573 == 0 then
pUnit:RegisterEvent('spell0_29573', 1, 1)
end
if choix_sorts_29573 == 1 then
pUnit:RegisterEvent('spell1_29573', 1, 1)
end
end

function mob29573_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29573', math.random(1500, 3000), 1)
end

function mob29573_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29573_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29573_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29573, 1, 'mob29573_Action')
RegisterUnitEvent(29573, 2, 'mob29573_Leave')
RegisterUnitEvent(29573, 3, 'mob29573_Kill')
RegisterUnitEvent(29573, 4, 'mob29573_Die')
